<html>
<head>
    <meta charset="UTF-8"> 
    <title>div标签</title>
    <script type="text/javascript">
        function onClick(){
            var obj = document.getElementById("myDiv");
            obj.innerHTML = '<img src="/images/img.png"/>';
        }
    </script>

</head>

<body>
    <input type="button" value="按钮" onclick="onClick();">
    <div id="myDiv">
        <form method='post' action='server.php'>
            <table>
                <tr>
                    <td>姓名</td>
                    <td>
                        <input type='text'>
                    </td>
                </tr>
                <tr>
                    <td>年龄</td>
                    <td>
                        <input type='text'>
                    </td>
                </tr>
            </table>
            <br>
            <input type='submit' value='提交'>
        </form>
    <div>
</html>
